<template>
  <div id="route">
    <div class="route_title">
      {{routeObj.title}}
    </div>
    <div class="route_body">
      <div class="route_logo iconfont">
        &#xe661;
      </div>
      <div class="route_info">{{routeObj.info}}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Route",
  props:{
    routeObj:Object
  }
}
</script>

<style scoped>
@font-face {
  font-family: 'iconfont';
  src: url('../../../assets/font/iconfont.ttf?t=1631187508364') format('truetype');
}
.iconfont{
  font-family: "iconfont" !important;
  font-size: 32px;
  font-style: normal;
  font-weight: bolder;
  color: #c0a16f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#route{
  position: relative;
  width: 80%;
  max-width: 400px;
  margin: 20px auto;
}
.route_title{
  font-size: 22px;
  font-weight: bolder;
  text-align: center;
}
.route_logo{
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
}
.route_logo img{
  width: 100%;
}
.route_info{
  color: #252525;
  position: relative;
  width: 90%;
  font-size: 16px;
  height: 100px;
  top: -12px;
 font-family: 微软雅黑, serif;
  background: white;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 88px;
  border-radius: 8px;
  box-shadow: 0 15px 30px  rgba(0,0,0,.1);
  overflow: hidden;
  line-height: 25px;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
</style>